/**
 * 
 */
package com.jiang.vo;

import java.io.Serializable;

/**
 * @author Administrator
 * @属性与字段的对应关系实体
 */
@SuppressWarnings("serial")
public class ColumnAndProperty implements Serializable{

	private String propertyName; // 属性名称
	private String columnName; // 字段名称
	private String type; // 类型
	private Boolean isId; // 是否为主键
	private String generator; // 增长方式

	public ColumnAndProperty() {

	}

	public ColumnAndProperty(String propertyName, String columnName, String type, Boolean isId, String generator) {
		super();
		this.propertyName = propertyName;
		this.columnName = columnName;
		this.type = type;
		this.isId = isId;
		this.generator = generator;
	}

	public String getPropertyName() {
		return propertyName;
	}

	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Boolean getIsId() {
		return isId;
	}

	public void setIsId(Boolean isId) {
		this.isId = isId;
	}

	public String getGenerator() {
		return generator;
	}

	public void setGenerator(String generator) {
		this.generator = generator;
	}

	@Override
	public String toString() {
		return "ColumnAndProperty [propertyName=" + propertyName + ", columnName=" + columnName + ", type=" + type
				+ ", isId=" + isId + ", generator=" + generator + "]";
	}

}
